import java.util.Arrays;

class Solution {
    public int[] twoSum(int[] nums, int target) {
        nums = new int[]{2, 7, 11, 15};
        target = 9;
        for(int i=0;i<nums.length;i++)
            for(int j = i+1;j<nums.length;j++){
                if (nums[i] + nums[j] == target){
                    System.out.println(Arrays.toString(new int[]{i,j}));
                }
            }        System.out.println();
        return new int[]{};

    }

}